package com.yuyu.qingmangmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyu.common.utils.PageUtils;
import com.yuyu.qingmangmall.product.entity.SkuInfoEntity;
import com.yuyu.qingmangmall.product.vo.PricesVo;
import com.yuyu.qingmangmall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author yuwengsheng
 * @email 3337002363@qq.com
 * @date 2021-05-31 10:48:26
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfoEntityA);


    PageUtils queryPageByCondition(Map<String, Object> params);


    List<SkuInfoEntity> getSkuBySpuId(Long spuId);

    /**
     * 获取商品详情信息
     * @param skuId
     * @return
     */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;

    List<PricesVo> getNewPrices(Long... skuIds);
}

